import unittest
import sys
import os
sys.path.append("..")

from tagengine.parsers import xmlparser
print os.path.isfile(os.path.join(xmlparser.FILE_LOCATION, "xmldefault.db"))

x = xmlparser.TAGxMLParser("test.xml")
print x.format

print x.data

for name in x.data:
    print "== Name: " + name + " =="
    for varname in x.data[name]:
        print varname
        print x.data[name][varname]
        
    print
    